package com.qiji.video.util;

public enum ResultCode {
    SUCCESS(1,"操作成功"),
    ERROR(2,"操作失败"),
    PARAM_ERROR(3,"参数错误"),

    SELECT_SUCCESS(200,"查询成功"),
    UPDATE_SUCCESS(200,"修改成功"),
    INSERT_SUCCESS(200,"添加成功"),
    DELETE_SUCCESS(200,"删除成功"),
    SELECT_ERROR(201,"查询失败"),
    USER_NULL(10001,"该用户不存在"),
    ADMIN_NULL(10010,"管理员不存在"),
    PASSWORD_ERROR(10002,"密码错误"),
    UPDATE_ERROR(10003,"修改失败"),
    INSERT_ERROR(10004,"添加失败"),
    DELETE_ERROR(10005,"删除失败"),
    USER_NO_LOGIN(20001,"未登录、请先登录"),
    VERIFICATIONCODE_ERROR(205,"验证码错误"),
    VERIFICATIONCODE_EXPIRE(305,"验证码过期");

    //系统可能返回的信息 及状态码 定义到枚举类
    private Integer status;
    private String message;

    ResultCode(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
